/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartFishFeeder {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010090015';
    }

    get categoryName() {
        return '\u9c7c\u7f38\u5582\u98df\u5668';
    }

    getAutoFeedMode(params) {
        return command({
            method: 'getAutoFeedMode',
            methodId: 'pDrhrHhP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAutoFeedSwitch(params) {
        return command({
            method: 'getAutoFeedSwitch',
            methodId: 'p1vZLiZm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFeedPortion(params) {
        return command({
            method: 'getFeedPortion',
            methodId: 'pgh0Uv0w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGox3yx5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAutoFeedMode(params) {
        return command({
            method: 'setAutoFeedMode',
            methodId: 'pUPQDOnK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAutoFeedSwitch(params) {
        return command({
            method: 'setAutoFeedSwitch',
            methodId: 'ppAr4CPM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFeedPortion(params) {
        return command({
            method: 'setFeedPortion',
            methodId: 'pZgubjRl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3eUyn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartFishFeeder;
